home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / misc / F1GP_Ed_204.lha / f1gp-ed / Install_F1GP-Ed < prev    next >
Text File  |  1994-11-19  |  4KB  |  164 lines

  1. ; F1GP-Ed Installer script (Aminet shareware archive version)
  2. ; $VER: 1.00 (19.11.94)
  3. ; written by Oliver Roberts
  4.  
  5. (set OSVersion (/ (getversion) 65536))
  6.  
  7. (welcome
  8.    ("This utility will attempt to, either, install F1GP-Ed for the first time ")
  9.    ("or update an existing version, as best it can on your system.  \n\n")
  10.    ("This program will update libraries if older versions exist, ")
  11.    ("and copy all files needed.\n")
  12. )
  13.  
  14. (if(set destdir
  15.       (askdir
  16.          (prompt "Select a drawer in which F1GP-Ed should be installed/updated?\n(a separate drawer will not be created!)")
  17.          (help @askdir-help)
  18.          (default @default-dest)
  19.       )
  20.    )
  21.    (
  22.       (set @default-dest destdir)
  23.    )
  24. )
  25.  
  26. (set libdir
  27.    (askdir
  28.       (prompt "Where are the system libraries?")
  29.       (help "Select the drawer where your system libraries are stored.  This can usually be accessed by the LIBS: assign and is therefore the default.")
  30.       (default "LIBS:")
  31.    )
  32. )
  33.  
  34. (complete 10)
  35.  
  36. (if (< OSVersion 36)
  37.    (
  38.       (set ReqToolsSource "libs13/reqtools.library")
  39.       (copylib
  40.          (prompt "Installing newer version of gadtools13.library")
  41.          (source "libs13/gadtools13.library")
  42.          (dest libdir)
  43.          (help @copylib-help)
  44.          (newname "gadtools13.library")
  45.          (confirm)
  46.       )
  47.    )
  48.    (
  49.       (set ReqToolsSource "libs20/reqtools.library")
  50.    )
  51. )
  52.  
  53. (copylib
  54.    (prompt "Installing newer version of reqtools.library")
  55.    (source ReqToolsSource)
  56.    (dest libdir)
  57.    (help @copylib-help)
  58.    (newname "reqtools.library")
  59.    (confirm)
  60. )
  61.  
  62. (complete 20)
  63.  
  64. (copylib
  65.     (prompt "Copying F1GP-Ed...")
  66.     (source "F1GP-Ed")
  67.     (dest @default-dest)
  68.     (help @copylib-help)
  69.     (infos)
  70.     (confirm)
  71. )
  72.  
  73. (if (NOT(exists ("s:F1GP-Ed.config")))
  74.    (
  75.       (copyfiles
  76.          (prompt "Copying default F1GP-Ed config file...")
  77.          (source "s/F1GP-Ed.config")
  78.          (dest "s:")
  79.          (newname "F1GP-Ed.config")
  80.          (help @copyfiles-help)
  81.          (confirm)
  82.       )
  83.    )
  84. )
  85.  
  86. (complete 40)
  87.  
  88. (copyfiles
  89.     (prompt "Copying F1GP-Ed Documentation...")
  90.     (source "F1GP-Ed.guide")
  91.     (dest @default-dest)
  92.     (help @copyfiles-help)
  93.     (infos)
  94. )
  95.  
  96. (copyfiles
  97.     (prompt "Copying F1GP-Ed Registration Form...")
  98.     (source "Registration.txt")
  99.     (dest @default-dest)
  100.     (help @copyfiles-help)
  101.     (infos)
  102. )
  103.  
  104. (complete 60)
  105.  
  106. (set opts
  107.    (askoptions
  108.       (prompt "Please select which optional files you want to copy (existing files will be overwritten)")
  109.       (help @askoptions-help)
  110.       (choices "Real-life 1994 F1GP-Ed datafile" "Replacement Engine sound sample" "F1GP-Ed V2.30 Demo" "F1GP 2 News")
  111.    )
  112. )
  113.  
  114. (complete 70)
  115.  
  116. (if (IN opts 0)
  117.    (copyfiles
  118.       (prompt "Copying real-life 1994 settings...")
  119.       (source "1994.f1gp")
  120.       (dest @default-dest)
  121.       (help @copyfiles-help)
  122.       (infos)
  123.    )
  124. )
  125.  
  126. (if (IN opts 1)
  127.    (copyfiles
  128.       (prompt "Copying example replacement Engine sound sample...")
  129.       (source "EngineSample.RAW")
  130.       (dest @default-dest)
  131.       (help @copyfiles-help)
  132.    )
  133. )
  134.  
  135. (complete 80)
  136.  
  137. (if (IN opts 2)
  138.    (copyfiles
  139.       (prompt "Copying the demo of the registered F1GP-Ed...")
  140.       (source "F1GP-Ed_Demo")
  141.       (dest @default-dest)
  142.       (help @copyfiles-help)
  143.       (infos)
  144.    )
  145. )
  146.  
  147. (if (IN opts 3)
  148.    (copyfiles
  149.       (prompt "Copying F1GP 2 textfile...")
  150.       (source "F1GP_2.README")
  151.       (dest @default-dest)
  152.       (help @copyfiles-help)
  153.       (infos)
  154.    )
  155. )
  156.  
  157. (complete 100)
  158.  
  159. (exit
  160.     ("Files installed.  Enjoy using F1GP-Ed!\n")
  161.     ("Please email any bugs or suggestions to the author at ")
  162.     ("O.J.C.Roberts@essex.ac.uk (see documentation).")
  163. )
  164.